
<?php

$nom = $_POST["arguments"];
$_POST["nm"];
function up($f){

    $json_string = file_get_contents('usr.json');

    $d = json_decode($json_string,true);
    $userName=$_COOKIE['usn'];
    $password=$_COOKIE['pwd'];
    if($d[$userName]['pass']===$password){
        $d[$userName]['sc']=$f;
        $json_strings = json_encode($d);
        file_put_contents("usr.json",$json_strings);
    }else{
        echo('请重新登陆');
    }
}